package com.demo.morning;

/**
 * @ClassName java_多线程ThreadRunnable
 * @Description TODO
 * @Author tianqinglong123
 * @Date 9:22 2022/7/13
 * @Version 1.0
 **/
public class java_多线程ThreadRunnable extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 20; i++) {
            System.out.println("我在看代码");
        }
        System.out.println("-------------");
    }

    public static void main(String[] args) {
        java_多线程ThreadRunnable thread = new java_多线程ThreadRunnable();
        thread.start();
        for (int i = 0; i < 2000; i++) {
            System.out.println("我在看多线程");
        }
    }
}
